# -*- coding: utf-8 -*-
from tornado.gen import coroutine

import app.models.dao as dao
import app.tools.sm_config_reader as layer_type
from app.views import SmBaseHandler


LayerType = layer_type.LayerType
mine_id = layer_type.default_MineId


class IntergenerationalHandler(SmBaseHandler):
    @coroutine
    def get(self):
        links = yield dao.get_integration()
        self.finish({'data': links})
